import request from '@/api/socialized-servce/index.js' //引入http.js
const api = request
export default {
	// 查询主播
	queryAnchor(params) {
		let url = 'service/service/obj/queryByCondition'
		return api.request(url, 'post', {
			...params
		})
	},
	// 查询农机
	queryMachinery(params) {
		let url = `service/service/projectEquipment/queryByCondition`
		return api.request(url, 'post', {
			...params
		})
	},
	// 查询地块
	queryArable(params) {
		let url = `service/service/obj/queryByCondition`
		return api.request(url, 'post', {
			...params
		})
	},
	queryMachineryType(organizationNo) {
		let url = `service/service/equipmentType/queryTree?organizationNo=${organizationNo}`
		return api.request(url,'get')
	}
}